<?php
	require dirname(__FILE__). "/common.inc.php";
	//require $_SERVER["DOCUMENT_ROOT"] . "/include/config.inc.php";
?>
<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head profile="http://www.w3.org/2000/08/w3c-synd/#">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $page_title . " - " . $site_name; ?></title>
<meta name="keywords" content="W3C, Web, WWW, HTML, XML, CSS, style sheet, XHTML, mobile" />
<meta name="description" content="建立一套自用的网页重用代码（XHTML/CSS模式），并收集一些设计优秀的区块代码及表现模式" />
<link rel="shortcut icon" href="<?php echo $baseurl; ?>/favicon.ico" />
<link rel="stylesheet" href="<?php echo $style; ?>" type="text/css" media="screen" /> 
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> 
<link rel="bookmark" href="#XHTML" title="XHTML |" />
<link rel="bookmark" href="#CSS" title="XHTML |" />
<link rel="bookmark" href="#XHTMLMp" title="XHTML MP |" />
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAeGr8RT1C9EK2nE6wbgDDGRTVos7ZhsTgwjv01dVfp-iuUCYYQxQU_XnuONhntLHyucVattJD5dWmzg"></script>
<script type="text/javascript">
	google.load("jquery", "1");
</script>
<script type="text/javascript" src="./include/js/jquery.lightbox.js"></script>
<script type="text/javascript" src="./include/js/common.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#<?php echo $page_id; ?>").addClass("nav_active");
	});
</script>
</head>
<body>
<div class="outer">
	<div class="mainhead"><div class="wrap">
		<h1 id="logo"><img alt="Web Pattern" height="55" width="153" src="images/logo.png" /></h1>
		<h2 id="slogan">XHTML/CSS Pattern, Design Pattern.</h2>
		<div class="headnav">
			<ul class="navList">
				<li><a id="page_index" href="<?php echo $baseurl ?>">首页</a></li>
				<li><a id="page_layout" href="<?php echo $baseurl ?>layout.php">网页布局</a></li>
				<li><a id="page_pattern" href="<?php echo $baseurl ?>pattern.php">功能区块</a></li>
				<li><a id="page_collection" href="<?php echo $baseurl ?>collection.php">优秀模式</a></li>
				<li><a id="page_jsframe" href="<?php echo $baseurl ?>jsframe.php">JS框架</a></li>
			</ul>
		</div>
	</div></div>
	<div class="mainbody afterfix"><div class="wrap box">
